import { getCurrentInstance,ComponentInternalInstance } from "vue";

// 通过 getCurrentInstance 方法获取当前组件实例
export default function userInstance() {
    const { proxy, appContext } = getCurrentInstance() as ComponentInternalInstance
    const global = appContext.config.globalProperties
    return {
        proxy,
        global
    }
}